<?php
/* SVN FILE: $Id$ */
/* MgDepartamento Test cases generated on: 2009-06-18 12:06:10 : 1245344890*/
App::import('Model', 'MgDepartamento');

class MgDepartamentoTestCase extends CakeTestCase {
	var $MgDepartamento = null;
	var $fixtures = array('app.mg_departamento', 'app.mg_paise', 'app.mg_municipio');

	function startTest() {
		$this->MgDepartamento =& ClassRegistry::init('MgDepartamento');
	}

	function testMgDepartamentoInstance() {
		$this->assertTrue(is_a($this->MgDepartamento, 'MgDepartamento'));
	}

	function testMgDepartamentoFind() {
		$this->MgDepartamento->recursive = -1;
		$results = $this->MgDepartamento->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('MgDepartamento' => array(
			'id'  => 1,
			'descripcion'  => 'Lorem ipsum dolor ',
			'mg_paise_id'  => 1,
			'created'  => '2009-06-18',
			'modified'  => '2009-06-18',
			'adicionado_por'  => 'Lorem ipsum dolor ',
			'modificado_por'  => 'Lorem ipsum dolor '
			));
			$this->assertEqual($results, $expected);
	}
}
?>